package cn.dkk.behavior_design.observer.java_observer;

/**
 * @author dkk
 * @date 2022/7/27
 * @desc
 */
public class Test {
    public static void main(String[] args) {
        Weibo web = new Weibo("微博");
        web.addObserver(new User("DKK"));
        web.addObserver(new User("杜二狗"));
        web.notifyObservers("你们到底谁是杜二狗");
    }
}
